package com.zdkj.daemon.quartz.feign;

import com.zdkj.common.core.constant.SecurityConstants;
import com.zdkj.common.core.constant.ServiceNameConstants;
import com.zdkj.common.core.util.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestHeader;


/**
 * 车票管理模块对外接口类
 * @author Administrator
 */
@FeignClient(contextId = "remoteSubwayStService", value = ServiceNameConstants.SUBWAY_ST_SERVICE)
@Component
public interface RemoteSubwayStService {

    /**
     * 财务对账，统计上月的公务票金额
     * @param from
     * @return
     */
    @PostMapping("/sttkfinancialreconciliation/countMoney")
    R calcTicketCountMoney(@RequestHeader(SecurityConstants.FROM) String from);

    /**
     * 车票配送三日内未确认，到第三日系统自动确认
     * @param from
     * @return
     */
    @PostMapping("/swtkticketdelivery/station/autoConfirm")
    R ticketAutoConfirm(@RequestHeader(SecurityConstants.FROM) String from);
}
